package com.yang.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Administrator
 * @decription
 * @Date 2018-05-22 10:28
 */
@FeignClient(value = "server-say-hi",fallback = HelloServiceHystric.class)
public interface HelloService {

    @RequestMapping(value = "/hi",method = RequestMethod.POST)
    String getHelloInfo(@RequestParam(value = "name") String name);
}
